define(function(){
    return {
        container:'<table id="Js-container" class="cmsMobile-container">\
            <tr><td class="cmsMobile-list"><div class="serachCon"><input id="Js-act-search" class="form-control" type="text" placeholder="搜索名称"/></div><ul id="Js-cmsMobile-list" class="cms-tree ztree"></ul></td>\
            <td class="cmsMobile-body" id="Js-cmsMobile-body"></td>\
        </tr></table>',
        contextmenu:'  <ul id="Js-cmsMobile-contextmenu" class="dropdown-menu" style="left:<%clientX%>px;top:<%clientY%>px;display:block;">\
            <li><a id="Js-cmsMobile-addFile" href="javascript:;">创建文件</a></li>\
            <li><a id="Js-cmsMobile-addCate" href="javascript:;">创建目录</a></li>\
        </ul>',
        cmsheader:'<div class="cms-btn-container">\
            <ul class="cms-btn-body">\
            <li class="cms-btn" id="Js-image"><span class="glyphicon glyphicon-picture"></span><span>图片</span>\
            <div class="bottom-select bottom Js-select-con"><div class="arrow"></div><div class="select-list-con"><ul class="menus">\
            <li class="select-list Js-select-list" dataType="carousel"><span class="glyphicon glyphicon-film fl"></span><span>轮播图</span></li>\
            <li class="select-list Js-select-list" dataType="static"><span class="glyphicon glyphicon-picture fl"></span><span>静态图</span></li>\
            </ul></div></li>\
            <li class="cms-btn" id="Js-cms-production"><span class="glyphicon glyphicon-shopping-cart"></span>商品</li>\
            <li class="cms-btn" id="Js-layout"><span class="glyphicon glyphicon-th"></span><span>布局</span>\
             <div class="bottom-select bottom Js-select-con"><div class="arrow"></div><div class="select-list-con"><ul class="menus">\
            <li class="select-list Js-select-list" dataType="tpl1"><span class="glyphicon glyphicon glyphicon-th fl"></span><span>模板一</span></li>\
            <li class="select-list Js-select-list" dataType="tpl2"><span class="glyphicon glyphicon glyphicon-th fl"></span><span>模板二</span></li>\
            </ul></div></li>\
            <li class="cms-btn" id="Js-cms-setting"><span class="glyphicon glyphicon-cog"></span>设置</li>\
            <li class="cms-btn" id="Js-cms-save"><span class="glyphicon glyphicon-floppy-disk"></span>保存</li>\
            </ul>\
            </div>',
        cmssetting:'<div class="cmssetting"><div class="title Js-drag"><div class="ctitle">设置</div><div class="closecode Js-dialog-close">关闭</div></div>\
                  <div class="gset_con" id="Js-cmsSetcon">\
                    <div class="gset_left">\
                      <ul class="nav nav-pills nav-stacked Js-tabs">\
                        <li role="presentation" data-flag="id" class="active"><a href="#">基础信息</a></li>\
                        <li role="presentation" data-flag="share"><a href="#">分享设置</a></li>\
                      </ul>\
                    </div>\
                    <div class="gset_right">\
                      <div id="Js-set-id" class="content">\
                        <form action="/resource/save-uniqueflag" wx-validator-ajax name="uniqueFlag">\
                        <ul class="setting-item">\
                            <li><dt>唯一标示：</dt><dd class="setting-range" style="width:auto;line-height: 34px;"><input wx-validator-rule="required|allcharNum" name="unique" class="form-control Js-uniqueId" type="text" style="float:left;width:180px;"/></dd></li>\
                        </ul>\
                        <input type="submit" class="btn btn-primary btn-lg Js-sub" value="修改">\
                        <input type="text" style="display:none" name="id" class="Js-pageid"/>\
                        </form>\
                      </div>\
                      <div id="Js-set-share" class="content novisible shareSet">\
                        <ul class="setting-item">\
                            <li><dt>分享标题：</dt><dd class="setting-range"><input name="title" class="form-control" type="text"  value="<%shareInfo.title||""%>"/></dd></li>\
                            <li><dt>好友分享：</dt><dd class="setting-range"><input name="descFriend" class="form-control" type="text" value="<%shareInfo.descFriend||""%>"/></dd></li>\
                            <li><dt style="font-size:13px;">朋友圈分享:</dt><dd class="setting-range"><input name="titleCircleFriends" class="form-control" type="text" value="<%shareInfo.titleCircleFriends||""%>"/></dd></li>\
                            <li><dt>活动地址：</dt><dd class="setting-range"><input name="link" class="form-control" type="text" value="<%shareInfo.link||""%>"/></dd></li>\
                            <li><dt>图标<img src="<%shareInfo.imgUrl%>" id="Js-iconImg" style="width:32px;border:1px solid #333;height:32px;margin:4px;"></dt><dd class="setting-range">\
                            <input class="form-control Js-actIcon" type="text" name="imgUrl" style="float:left;margin-right:10px;" value="<%shareInfo.imgUrl||""%>"/>\
                            <div class="btn btn-default uploadBtn">上传<input id="Js-uploadIcon" type="file" name="file" wx-upload="/web/upload.action" wx-upload-param="type=1&online=1" style="left:0"/></div>\
                            </dd></li>\
                            <li><dt>分享设置：</dt><dd class="setting-range">\
                            <%if(shareInfo.isshare){%>\
                                <span><input name="isshare" type="checkbox" checked/>启用分享</span>\
                            <%}else{%>\
                                <span><input name="isshare" type="checkbox"/>启用分享</span>\
                            <%}%> \
                            <%if(shareInfo.isgetUserInfo){%>\
                                <span><input name="isgetUserInfo" type="checkbox" checked/>获取用户信息</span>\
                            <%}else{%>\
                                <span><input name="isgetUserInfo" type="checkbox"/>获取用户信息</span>\
                            <%}%> \
                            </dd></li>\
                        </ul>\
                        <div id="Js-save-shareinfo" class="btn btn-primary btn-lg">修改</div>\
                      </div>\
                       </div>\
                  </div>\
                  </div>',
        cmscontainer:'<div id="Js-cmscont-container" class="cmscont"><div id="Js-cmscont"></div></div>',
        goodsInfoCon:'<ul class="goodsinfo panel panel-default" id="Js-cmsMobile-goodsInfo">\
            <li><span>ID：</span>&nbsp;<%id%></li>\
            <li><span>名称：</span><a target="_blank" href="http://www.tootoo.cn/product-s1-<%id%>-zh_cn.html"><%name%></a></li>\
            <li><span>价格：</span><font>¥<%price%></font></li>\
        </ul>',
        settingCon:'<div class="setcont panel panel-default" id="Js-setcont">\
        <div class="panel-body" style="padding:5px">\
        <ul class="img-property">\
            <li class="input-group" id="Js-name-con">\
                <span class="input-group-addon">名字:</span>\
                <input type="text" class="form-control" id="Js-image-name">\
            </li>\
            <li class="input-group">\
                <span class="input-group-addon">跳转到:</span>\
                <select class="form-control" id="Js-select-url">\
                    <option value="-1" data-ph="-1">无</option>\
                    <option value="5001" data-ph="请填写URL">Web</option>\
                    <option value="5004" data-ph="请填写搜索关键词">搜索（关键词）</option>\
                    <option value="5005" data-ph="-2">商品列表</option>\
                    <option value="5006" data-ph="请填写商品ID">商品详情</option>\
                    <option value="5007" data-ph="-1">发现列表（团购列表）</option>\
                    <option value="5008" data-ph="-2">发现详情</option>\
                    <option value="5017" data-ph="-1">兑换专区</option>\
                    <%if(isWrite){%>\
                        <option value="5021" data-ph="-1">首页</option>\
                        <option value="5002" data-ph="请填写URL">Web（需要登录）</option>\
                        <option value="5025" data-ph="请填写商品ID">迷你商品详情页</option>\
                        <option value="5022" data-ph="-2">专题列表</option>\
                        <option value="5024" data-ph="请填写专题ID">专题详情</option>\
                        <option value="5013" data-ph="请填写商品ID">加入购物车</option>\
                        <option value="5016" data-ph="-1">登录</option>\
                        <option value="5018" data-ph="-2">分享</option>\
                        <option value="5020" data-ph="-1">分享领券</option>\
                    <%}%>\
                </select>\
            </li>\
        </ul>\
        <div id="Js-imgset-href" style="display:none">\
            <input type="text" class="form-control mb10">\
            <div class="btn btn-primary value-save Js-val-save">保存</div>\
        </div>\
        <div id="Js-input-5005" style="display:none">\
            <input type="text" placeholder="品牌ID" v-name="brandIds" class="form-control mb10 brandIds">\
            <input type="text" placeholder="标签ID" v-name="specialIds" class="form-control mb10 specialIds">\
            <input type="text" placeholder="分类ID" v-name="catIds" class="form-control mb10 catIds">\
            <input type="text" placeholder="促销ID" v-name="promotionIds" class="form-control mb10 promotionIds">\
            <div class="btn btn-primary value-save Js-val-save">保存</div>\
        </div>\
        <div id="Js-input-5008" style="display:none">\
            <input type="text" placeholder="促销ID" v-name="promotionId" class="form-control mb10 promotionId">\
            <input type="text" placeholder="商品ID" v-name="goodsId" class="form-control mb10 goodsId">\
            <div class="btn btn-primary value-save Js-val-save">保存</div>\
        </div>\
        <div id="Js-input-5018" style="display:none">\
            <input type="text" placeholder="标题" v-name="TITLE" class="form-control mb10 TITLE">\
            <input type="text" placeholder="描述" v-name="CONTENT" class="form-control mb10 CONTENT">\
            <input type="text" placeholder="图片URL" v-name="PIC_URL" class="form-control mb10 PIC_URL">\
            <input type="text" placeholder="链接" v-name="LINK" class="form-control mb10 LINK">\
            <div class="btn btn-primary value-save Js-val-save">保存</div>\
        </div>\
        <div id="Js-input-5022" style="display:none">\
            <input type="text" placeholder="身份ID" v-name="identityId" class="form-control mb10 identityId">\
            <input type="text" placeholder="标签ID" v-name="tagId" class="form-control mb10 tagId">\
            <div class="btn btn-primary value-save Js-val-save">保存</div>\
        </div>\
        </div>\
        </div>',
        carouselTpl:'<div class="Js-list-group list-group-item" tplType="1"><div class="cmssetting-title"><%name%></div><span class="move">轮播图</span>\
        <div class="scroll-cont"><ul class="Js-list-child list-child"></ul></div>\
        <div class="addico glyphicon glyphicon-plus" >\
        <input class="Js-addimg" type="file" name="file" wx-upload="/web/upload.action" wx-upload-mult wx-upload-param="type=1&online=1">\
        </div></div>',
        scrollTpl:'<div class="Js-list-group list-group-item" tplType="2"><div class="cmssetting-title"><%name%></div><span class="move">滑动图</span><div class="scroll-cont"><ul class="Js-list-child list-child"></div></ul><div class="addico glyphicon glyphicon-plus"><input class="Js-addimg" type="file" name="file"  wx-upload="/web/upload.action" wx-upload-mult wx-upload-param="type=1&online=1"></div></div>',
        staticTpl:'<div class="Js-list-group list-group-item" tplType="3"><div class="cmssetting-title"><%name%></div><span class="move">静态图</span><div class="scroll-cont"><ul class="Js-list-child list-child"></div></ul><div class="addico glyphicon glyphicon-plus"><input class="Js-addimg" type="file" name="file"  wx-upload="/web/upload.action" wx-upload-mult wx-upload-param="type=1&online=1"></div></div>',
        goodsTpl:'<div class="Js-list-group list-group-item" tplType="6"><div class="cmssetting-title"><%name%></div><span class="move">商品图</span><div class="scroll-cont"><ul class="Js-list-child list-child"></div></ul><div class="addico glyphicon glyphicon-plus"><input class="Js-addimg" type="file" name="file"  wx-upload="/web/upload.action" wx-upload-mult wx-upload-param="type=1&online=1"></div></div>',
        tpl1Tpl:'<div class="Js-list-group list-group-item" tplType="4"><span class="move">模板一</span><ul class="tpl1">\
            <li class="img0"><div class="Js-tpl-add glyphicon glyphicon-plus tpl-add">\
            <input class="Js-addimg" type="file" name="file" istpl="true"wx-upload="/web/upload.action" wx-upload-mult wx-upload-param="type=1&online=1">\
            </div></li>\
            <li class="img1"><div class="Js-tpl-add glyphicon glyphicon-plus tpl-add">\
            <input class="Js-addimg" type="file" name="file" istpl="true"wx-upload="/web/upload.action" wx-upload-mult wx-upload-param="type=1&online=1">\
            </div></li>\
            <li class="img2"><div class="Js-tpl-add glyphicon glyphicon-plus tpl-add">\
            <input class="Js-addimg" type="file" name="file" istpl="true"wx-upload="/web/upload.action" wx-upload-mult wx-upload-param="type=1&online=1">\
            </div></li>\
        </ul></div>',
        tpl2Tpl:'<div class="Js-list-group list-group-item" tplType="5"><span class="move">模板二</span><ul class="tpl1">\
            <li class="img0" style="float:right;margin-right: 26px;"><div class="Js-tpl-add glyphicon glyphicon-plus tpl-add">\
            <input class="Js-addimg" type="file" name="file" istpl="true"wx-upload="/web/upload.action" wx-upload-mult wx-upload-param="type=1&online=1">\
            </div></li>\
            <li class="img1"><div class="Js-tpl-add glyphicon glyphicon-plus tpl-add">\
            <input class="Js-addimg" type="file" name="file" istpl="true"wx-upload="/web/upload.action" wx-upload-mult wx-upload-param="type=1&online=1">\
            </div></li>\
            <li class="img2"><div class="Js-tpl-add glyphicon glyphicon-plus tpl-add">\
            <input class="Js-addimg" type="file" name="file" istpl="true"wx-upload="/web/upload.action" wx-upload-mult wx-upload-param="type=1&online=1">\
            </div></li>\
        </ul></div>',
        tpl3Tpl:'<div class="Js-list-group list-group-item" tplType="6"><span class="move">模板三</span><ul class="tpl1">\
            <li class="img0"><div class="Js-tpl-add glyphicon glyphicon-plus tpl-add">\
            <input class="Js-addimg" type="file" name="file" istpl="true"wx-upload="/web/upload.action" wx-upload-mult wx-upload-param="type=1&online=1">\
            </div></li>\
        </ul></div>',
        tpl4Tpl:'<div class="Js-list-group list-group-item" tplType="7"><span class="move">模板四</span><ul class="tpl1">\
            <li class="img0"><div class="Js-tpl-add glyphicon glyphicon-plus tpl-add">\
            <input class="Js-addimg" type="file" name="file" istpl="true"wx-upload="/web/upload.action" wx-upload-mult wx-upload-param="type=1&online=1">\
            </div></li>\
        </ul></div>',
        imgIcon:'<%for(var i=0;i<path.length;i++){%>\
                    <li class="fancybox image Js-click-img" data-fancybox-group="gallery<%index%>" href="<%path[i].path%>" initsrc="<%path[i].path%>" type="<%type || -1%>" key="<%key || ""%>" name="<%name || ""%>">\
                        <img src="<%path[i].path%>" width="65" height="65"/>\
                    </li>\
                <%}%>',
        imgIconSingle:'<li class="fancybox image Js-click-img" data-fancybox-group="gallery<%index%>" href="<%path%>" initsrc="<%path%>" type="<%type || -1%>" key="<%key || ""%>" name="<%name || ""%>">\
                <img src="<%path%>" width="65" height="65"/>\
            </li>',
        menu:'<div class="menu Js-menu"><ul class="Js-menu-ul"><li style="color:#f0ad4e;" class="glyphicon glyphicon-copy Js-copy" title="复制"><li style="color:rgb(120,193,81);" class="glyphicon glyphicon-edit Js-edit" title="编辑"></li><li style="color:#d9534f;" class="glyphicon glyphicon-remove Js-remove" title="删除"></li></ul></div>',
        goodsMenu:'<div class="menu Js-menu"><ul class="Js-menu-ul"><li style="color:#d9534f;" class="glyphicon glyphicon-remove Js-remove" title="删除"></li></ul></div>',
        tplImgIcon:'<div class="Js-tplImg-con tplImg-con"><img class="image Js-click-img" type="<%type || -1%>" key="<%key || ""%>" name="<%name || ""%>" initsrc="<%path%>" src="<%path%>" width="100%" height="100%"/><span class="Js-tpl-delImg glyphicon glyphicon-remove"></span></digv>',
        picEdit:'<div class="cmssetting-picEdit">\
                <div class="close Js-dialog-close">X</div>\
                <dl><dt>名称：</dt><dd><input id="Js-picEdit-name" value="<%name%>" class="form-control"></dd></dl>\
                <dl><dt>描述：</dt><dd><input id="Js-picEdit-desc" value="<%desc%>" class="form-control"></dd></dl>\
                <dl><dt>图片个数：</dt><dd><input type="text" class="Js-slider slider" data-slider-min="1" data-slider-max="30" data-slider-step="1" data-slider-value="[<%min%>,<%max%>]"/><span id="Js-picEdit-range" class="range"><%min%>-<%max%></span></dd></dl>\
                <dl><dt>唯一标示：</dt><dd><input id="Js-picEdit-id" value="<%id%>" class="form-control" placeholder="用于程序判断"></dd></dl>\
                <button class="btn btn-lg btn-primary" id="Js-picEdit-confirm" type="button">确定</button>\
            </div>',
        goodsListTpl:'<div class="Js-list-group list-group-item" tplType="11"><div class="cmssetting-title"></div><span class="move production">商品</span><div class="scroll-cont"><ul class="Js-list-child list-child"></div></ul><div class="addico glyphicon glyphicon-plus Js-cmsMobile-addProduction"></div></div>',
        goodsListAddProductTpl:'<div>商品ID<input id="Js-cmsMobile-productId" class="form-control"></div>',
        goodsListImgIcon:'<%for(var i=0;i<goods.length;i++){%>\
            <li class="fancybox image Js-click-goodsImg" data-fancybox-group="goodsList" href="<%goods[i].picInfo.picPaths[0].picPath%>" initsrc="<%goods[i].picInfo.picPaths[0].picPath%>" title="<%goods[i].goodsName%>" goodsid="<%goods[i].goodsID%>" price="<%goods[i].skuInfo.isPromotion==1&&goods[i].skuInfo.promotionPrice!=0?goods[i].skuInfo.promotionPrice:goods[i].skuInfo.theOriginalPrice%>">\
                <img src="<%goods[i].picInfo.picPaths[0].picPath%>" width="65" height="65"/>\
            </li>\
        <%}%>',
        goodsListSingleImgIcon: '<li class="fancybox image Js-click-goodsImg" data-fancybox-group="goodsList" href="<%path%>" initsrc="<%path%>" title="<%name%>" goodsid="<%gId%>" price="<%price%>">\
                <img src="<%path%>" width="65" height="65"/>\
            </li>'
    }
});
/**
 * tplType 
 * 1 轮播图
 * 2 滚动图
 * 3 广告静态图
 * 4 模板1
 * 5 模板2
 * 6 商品图
 */